package com.mao.wx.demo.util;


public class StringUtil {

	public static  boolean  isLong(String str){
		try {
			Long.parseLong(str);
			return true;
		} catch (Exception e) {
			return false;
		}
	}
	
	public static boolean isInt(String str){
		try {
			Integer.parseInt(str);
			return true;
		} catch (Exception e) {
			return false;
		}
		
	}
	
	public static boolean isFloat(String str){
		try {
			Float.parseFloat(str);
			return true;
		} catch (Exception e) {
			return false;
		}
	}
	
	public static boolean isDouble(String str){
		try {
			Double.parseDouble(str);
			return true;
		} catch (Exception e) {
			return false;
		}
	}
	
	
}
